$(document).ready(function() {
	$("#logbtn").click(function() {
		$.ajax({
					url : context + "/app/bcxdlogin.do",
					processData : false,
					data : "logid=" + $("#logid").val() + "&pwd="
							+ $("#pwd").val(),
					success : function(data) {
						var responseData = param2json(data);

						if (responseData.success) {
							document.location = context + "/site/"
									+ responseData.userType + ".jsp";
						} else if (responseData.error == -1000) {
							alert("未知的异常错误");
						} else if (responseData.error == -999) {
							alert("用户名或密码有误");
						} else if (responseData.error == 0) {
							alert("帐号待核准");
						} else if (responseData.error == -1) {
							alert("帐号未通过审核");
						} else if (responseData.error == -2) {
							alert("帐号已经被冻结");
						}
					},
					error : function() {
						alert("登录校验服务出现异常");
					}
				});
	})
});
